{#{% for item in list reversed %}#}
{#    <h1>{{ item.OrderNumber|lower|random }}</h1>?#}
{#    <p>订单编号{{ item.OrderNumber }}</p>#}
{#{% endfor %}#}

<table>
    <thead>
    <tr>
        <th>Id</th>
        <th>订单编号</th>
    </tr>
    </thead>
    <tbody>
    {% for item in list reversed %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.OrderNumber }}</td>
            <td>
                <button   onclick="submit('{{ item.OrderNumber }}');">删除</button>
            </td>

        </tr>
    {% endfor %}
    </tbody>
</table>
<style>
    table {
        border-collapse: collapse;
    }

    table, td, th {
        border: 1px solid black;
        padding: 5px 10px;
    }
</style>

<script>
    function submit(ordernumber) {
        if (confirm("确认要删除订单【" + ordernumber + "】吗")) {

        }
    }
</script>